<template>
    <div>
        {{ url }}
    </div>
</template>

<script>


export default {
    components: {},
    data() {

        return {
            url:"",
        }
    },
    methods: {

    },

    created() {

    },
    
    mounted() {
        // const str = 'https://h5.kanglailab.com/kics/wxH5?link=https://www.baidu.com/'
        
        const url = decodeURIComponent(window.location.href).split("link=")[1]

        // console.log(url,window.location.href)
        // const url = str.split("url=")[1]
        // console.log(url)
        // window.location.href=url
        this.url = url
        window.open(url,"_self")
        // window.location.replace=url
    },

}
</script>
<style></style>